﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchRoleControl.ascx.vb"
    Inherits="WebForm_ManageDownload_SearchRoleControl" %>
<%@ Register Src="../CommonControl/VolunteerQueryControl.ascx" TagName="VolunteerQueryControl"
    TagPrefix="uc1" %>
<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" Style="cursor: move;"
    Width="500">
    <br />
    <div align="center">
        <asp:Label ID="lblTitle" runat="server" Text="<%$ Resources:Title %>" SkinID="title"></asp:Label>
    </div>
    <br />
    <table align="center">
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <My:MyGridView ID="GridView_Volunteers" runat="server" AllowHoverEffect="False" 
                            AllowHoverSelect="False" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="RoleID" EmptyDataText="<%$ Resources:NoData %>" MouseOverColor="" 
                            MySortDirection="Ascending" SkinID="pager" TotalRowCount="0">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" Enabled='<%# Bind("IsEnable") %>' />
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="CheckBoxAll" runat="server" AutoPostBack="True" 
                                            oncheckedchanged="CheckBoxAll_CheckedChanged" />
                                        <asp:Label ID="Label2" runat="server" Text="全選"></asp:Label>
                                    </HeaderTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="RoleName" HeaderText="<%$ Resources:RoleName %>" 
                                    SortExpression="RoleName" />
                            </Columns>
                        </My:MyGridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                    TypeName="BLL_ManageDownload_SearchRoleControl" 
                    SelectMethod="BLL_Select">
                    <SelectParameters>
                        <asp:Parameter Name="FileSaveName" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnOK" runat="server" Text="<%$ Resources:OK%>" />
                <asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Cancel%>" />
            </td>
        </tr>
    </table>
    <br />
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" CancelControlID="btnCancel" PopupDragHandleControlID="panel1" />


